<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    <title>sign_put</title>
	<script src="js/jquery-3.2.1.min.js"></script>
	<script>
		function loginOut(){
	    $.ajax({
	        type:'post',
	        url:'${pageContext.request.contextPath }/loginOut',
	        contentType:'application/json;charset=utf-8',//指定为json类型
	        success:function(data){//返回json结果
	            	alert(data);
	            	
	        }       
	    }); 
	}
	</script>
  </head>
<body onload="loginOut()">
    This is my JSP page. <br>
  </body>
</html>
